<?php
require_once "./db_config.php";
$temp=$_POST['temp'];
$sql="SELECT * FROM prs_dictionary WHERE type = '$temp'";
$result=mysqli_query($conn,$sql);
if(mysqli_num_rows($result) > 0){
  while($row = mysqli_fetch_assoc($result)) {
    $arr[]=$row;
  }
  echo json_encode($arr,JSON_UNESCAPED_UNICODE);
}else{
  echo "ERROR!";
}
mysqli_close($conn);
